{% extends "base.html" %} {% block content %}

    <div class="row">
        <div class="col-md-12">
            <!-- Horizontal Form -->
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title"></h3>
                    <small>最后更新时间[{{ main_config.config_id }}]：{{ main_config.update_time  }}</small>
                </div>
                <!-- /.box-header -->
                <!-- form start -->
                <form class="form-horizontal" id="form_main_config">
                    <div class="box-body">
                        <div class="form-group">
                            <label  class="col-sm-2 control-label">网站名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control"  name="webname" style="width:700px" placeholder="网站名">
                            </div>
                        </div>
                        <div class="form-group">
                            <label  class="col-sm-2 control-label" >域名</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="domainname" style="width:700px" placeholder="www.xxx.xx" readonly>

                            </div>
                        </div>
                        <div class="form-group">
                            <label  class="col-sm-2 control-label" >IP</label>
                            <div class="col-sm-10">
                                <input type="text" class="form-control" name="urladdress" style="width:700px" placeholder="URL">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <div class="checkbox">
                                    <label>
                                        <input type="checkbox"> 是否启用VPN
                                    </label>
                                </div>
                            </div>
                        </div>


                    </div>
                    <!-- /.box-body -->
                    <div class="box-footer">
                        <!-- <button type="submit" class="btn btn-default">Cancel</button> -->
                        <button type="button" class="btn btn-info pull-right" onclick="save_config()">保存</button>
                    </div>
                    <!-- /.box-footer -->
                </form>
            </div>
            <!-- /.box -->
        </div>
    </div>





    <script>
        //init page
        $('#menu_proxy_config').addClass('active')
        $('#page_header').text('资源修改')
        $('#page_header_descript').text('用于修改已发布资源')
        $('#page_nav').text('服务管理')
        $('#page_name').text('资源修改')

        //input filter
        $("[data-mask]").inputmask();







    </script>
{% endblock %}
